// app.js
import http from './utils/http'
import md5 from './utils/md5.min'

App({
  showMsg() {
   
  },
  onLaunch() {
    http.get('/ai-sensing-back-service/api/um/checkuser/15387009148/' + md5('Zsy469473391')).then((res) => {
      let token = res.data.token;
      let tokenHeader = res.data.tokenHead;
      let refreshToken = res.data.refreshToken;
      wx.setStorageSync('AI_SENSING_TOKEN', tokenHeader + token)
      wx.setStorageSync('AI_SENSING_REFRESH_TOKEN', refreshToken);
    })
  },
  globalData: {
    userInfo: null,
    http:http,
    lnglat:null,
  }
})
